package org.ume.school.modules.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Django on 2017/8/6.
 */
@Entity
@Table(name = "vshop_goods_thumpup")
public class Thumbup implements Serializable {

    @Column(name = "id", columnDefinition = "varchar(64) NOT NULL COMMENT 'id'")
    @Id
    private String id;

    @Column(name = "goods_id", columnDefinition = "varchar(64) NOT NULL COMMENT '被赞ID'")
    private String goodsId;

    @Column(name = "thumb_up", columnDefinition = "int(11) NOT NULL COMMENT '数量'")
    private Integer thumbUp;

    @Column(name = "who", columnDefinition = "varchar(64) NOT NULL COMMENT '点赞人或者IP'")
    private String who;

    @Column(name = "create_time", columnDefinition = "timestamp NOT NULL COMMENT '点赞时间'")
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getThumbUp() {
        return thumbUp;
    }

    public void setThumbUp(Integer thumbUp) {
        this.thumbUp = thumbUp;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
